using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace AppManagement.SearchManagers
{
    #region Using
    using AppManagement.Helpers;
    using AppManagement.Models;
    using AppManagement.Repositories;
    #endregion

    /// <summary>
    ///  Search can bo qua cac thoi ki
    /// </summary>
    public partial class FrmTimBenhNhan : DevComponents.DotNetBar.Office2007Form
    {
        public EventHandler Handler { get; set; }

        public FrmTimBenhNhan()
        {
            InitializeComponent();
        }

        private void btnTim_Click(object sender, EventArgs e)
        {
            TransferDataInfo(this, new TransferSimpleDataEvent(txtMaBenhNhan.Text.Trim() + "#" + txtHo.Text.Trim() + "#" + txtTen.Text.Trim()));
        }

        /// <summary>
        ///  function is used to transfer data when event would be raised
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void TransferDataInfo(object sender, TransferSimpleDataEvent e)
        {
            this.Handler(this, e);
        }   

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}